package demo;

import demo.error.SysError;
import demo.exception.BizAssert;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.SpringBootConfiguration;
import org.springframework.boot.autoconfigure.AutoConfigurationExcludeFilter;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.TypeExcludeFilter;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.FilterType;

/**
 * @author meilin.huang
 * @date 2022-02-16 23:35 PM
 */
@MayflyBootApplication(mapperBasePackage = "demo.**.mapper")
public class DemoApplication {
    
    public static void main(String[] args) {
        // 设置全局业务断言错误码
        BizAssert.setDefaultErrorCode(SysError.ASSERT_ERROR.getCode());
        SpringApplication.run(DemoApplication.class);
    }
}
